//
//  ChooseTableViewCell.m
//  BigToBig
//
//  Created by 毛丽媛 on 16/8/8.
//  Copyright © 2016年 cn.cloudtp. All rights reserved.
//

#import "ChooseTableViewCell.h"

@implementation ChooseTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView{
    self.leftLab = [[UILabel alloc] init];
    [self.contentView addSubview:self.leftLab];
    
    self.rightLab = [[UILabel alloc] init];
    
    self.rightLab.textColor = [UIColor lightGrayColor];
    self.rightLab.font = [UIFont systemFontOfSize:15];
    self.rightLab.textAlignment = NSTextAlignmentRight;
    
    [self.contentView addSubview:self.rightLab];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.leftLab.frame = CGRectMake(20, 0, kScreenWidth / 2 - 20, self.contentView.frame.size.height);
    self.rightLab.frame = CGRectMake(kScreenWidth / 2, 0, kScreenWidth / 2 - 30, self.contentView.frame.size.height);
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
